package com.daxt.model.dic;


/**
 * @description: 文档模式
 *
 * @author: lig
 * @date: 2021-06-21
 */
public enum DicDocPattern {
	//0件 1卷

	PATTERN_0("0","件模式"), //
	PATTERN_1("1","卷模式"), //
	PATTERN_2("2","散文件模式"), //
	;

	private String key;
	private String value;

	private DicDocPattern(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		DicDocPattern[] values = DicDocPattern.values();
		for (DicDocPattern type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
